<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>使用Vue组件</title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		
		<div id="app">		
			<myComponent v-for="item in items" v-bind:qin="item"></myComponent>
		</div>
		
		<script>
			Vue.component('myComponent',{
				props: ['qin'],
				template: '<li>{{qin}}</li>'
			
			})
			
			let app = new Vue({
				el: '#app',
				date: {
					items: ['红楼梦','三国演义','西游记','水浒传']
				}
			})
		</script>
	</body>
</html>
